JBoss Community Archive (Read Only)

SwitchYard 0.8

Bean Components

The bean component provides support for implementing services using Java classes.

New Bean Service Wizard

This wizard creates a new component implemented by a Java class  In addition to creating the class, the wizard ensures the Bean capability is enabled for the project.  The resulting class is annotated with @Service so the specified service will be registered with the SwitchYard runtime when the application is deployed.  An example of the resulting class is shown below:

ExampleServiceBean.java
@Service(ExampleService.class)
public class ExampleServiceBean implements ExampleService {

	@Override
	public String sayHello(String name) {
		// TODO Auto-generated method stub
		return null;
	}

}

images/author/download/attachments/63636297/new_bean_2.gif

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-13 09:50:48 UTC, last content change 2013-01-22 17:40:49 UTC.